package didi.hcp.questionrobot.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import didi.hcp.questionrobot.group.AddGroup;
import didi.hcp.questionrobot.group.UpdateGroup;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CategoryBO {

    @NotNull(message = "ID不能为空",groups = {UpdateGroup.class})
    private Integer id;

    @NotBlank(message = "类别名不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private String categoryName;
}
